package com.lagou.com.lagou.homework.Modules2.item3;

/**
 * 接口实际作用
 */
public class InterfaceImpl implements InterfaceTest,InterfaceTest1{
    @Override
    public void show() {
        System.out.println("通话服务开始");
    }

    @Override
    public void show6() {
        System.out.println("上网服务开始");
    }

    public static void main(String[] args) {
        //声明接口的引用指向实现类，多态
        InterfaceTest ift = new InterfaceImpl();
        ift.show();

        InterfaceTest1 ift1 = new InterfaceImpl();
        ift1.show6();
    }
}
